package cn.tedu.pojo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author 青石
 * 省市区基础表
 * @TableName sys_base_area
 */
@Data
@Accessors(chain = true)
public class SysBaseArea implements Serializable {

    /**
     * 描述:
     * jdbc类型:INTEGER
     */
    @ApiModelProperty(
            dataType = "Integer",
            hidden = true, example = "示例值", allowableValues = "32"
    )
    private Integer id;

    /**
     * 描述:父ID
     * jdbc类型:INTEGER
     */
    @ApiModelProperty(
            value = "父ID", name = "parentId", dataType = "Integer",
            example = "示例值", allowableValues = "32"
    )
    private Integer parentId;

    /**
     * 描述:名称
     * jdbc类型:VARCHAR
     */
    @ApiModelProperty(
            value = "名称", name = "name", dataType = "String",
            example = "示例值", allowableValues = "200"
    )
    private String name;

    /**
     * 描述:层级
     * jdbc类型:TINYINT
     */
    @ApiModelProperty(
            value = "层级", name = "type", dataType = "Integer",
            example = "示例值", allowableValues = "1"
    )
    private Integer type;

    /**
     * 描述:关联id
     * jdbc类型:INTEGER
     */
    @ApiModelProperty(
            value = "关联id", name = "agencyId", dataType = "Integer",
            example = "示例值", allowableValues = "50"
    )
    private Integer agencyId;

    /**
     * 描述:子级地址列表
     * */
    private List<SysBaseArea> children;

    private static final long serialVersionUID = 1L;

}
